<cfparam name="workshopID" type="integer">
<cfparam name="organizationID" type="integer">
<cfparam name="view" type="string" default="students">

<!--- Include the methods file --->
<cfinclude template="/applications/admin/methods/m.cfm">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<title>Cash for College Workshop Administrator</title>
	<link rel="stylesheet" href="/applications/admin/common/workshops.css">
	<script type="text/javascript" language="javascript" src="/applications/admin/common/workshops.js"></script>
	<script type="text/javascript" language="javascript" src="/applications/admin/common/engine.js"></script>
	<script type="text/javascript" language="javascript">
	<!--
		submitIC = function(selVal, studentID) {
			var qObj = new Object();
			qObj.consentType = selVal;
			qObj.studentID = studentID;
			http("post", "/applications/admin/Components/StudentGateway.cfc?method=submitIC", submitICcb, qObj);
		}

		submitICcb = function(respObj) {
			if (respObj == false) {
				alert("Informed Consent not updated.  Please refresh the list and try again.");
			} else {
				alert("Informed Consent status updated");
			}
		}
	// -->
	</script>
</head>

<body style="padding: 2px; margin: 2px;">

<cfoutput>

	<cfswitch expression="#view#">
	
		<cfcase value="students">
			<cfinclude template="#request.pathToUI#/lists/workshop-students.cfm">
		</cfcase>
		
		<cfcase value="student,createStudent,editStudent">
			<cfinclude template="#request.pathToUI#/forms/workshop-student.cfm">
		</cfcase>
		
		<cfcase value="report">
			<cfinclude template="#request.pathToUI#/reports/workshop-students.cfm">
		</cfcase>
		
		<cfcase value="error">
			<h1>Invalid Submission</h1>
			<div class="h1Content">
				<p>Your submission encountered the following problem(s):</p>
				<ul>
					<cfloop index="i" from="1" to="#ArrayLen(messageArray)#">
						<li>#messageArray[i]#</li>
					</cfloop>
				</ul>
				<p>Use your browser's Back button to return to the previous page.</p>
			</div>
		</cfcase>
		
	</cfswitch>

</cfoutput>

</body>
</html>